package net.huashitong.ssydt.article.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import net.huashitong.ssydt.article.entity.SsArticleType;

import java.io.Serializable;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.09.15
 */
public class ArticleTypeListVO implements Serializable {

    private static final long serialVersionUID = -5112610088727751245L;

    @ApiModelProperty("文章分类id")
    private Long articleTypeId;//文章分类id
    @ApiModelProperty("分类名称")
    private String name;//分类名称

    public ArticleTypeListVO(SsArticleType ssArticleType) {
        this.articleTypeId = ssArticleType.getId();
        this.name = ssArticleType.getName();
    }

    public Long getArticleTypeId() {
        return articleTypeId;
    }

    public void setArticleTypeId(Long articleTypeId) {
        this.articleTypeId = articleTypeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
